import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import pl.edu.agh.io.gpstracker.client.dto.UserDto;
import pl.edu.agh.io.gpstracker.service.ServiceTest;
import pl.edu.agh.io.gpstracker.service.UserService;

public class App {
	public static void main(String[] args) {
		ApplicationContext appContext = new ClassPathXmlApplicationContext(
				"config/applicationContext.xml");
		
		UserService stockBo = (UserService) ((ServiceTest) appContext
				.getBean("test")).getUserService();
		stockBo.addNewUser(new UserDto());
	}
}
